package org.grow.loginto.dao;

import org.grow.loginto.entity.LeaveEntity;
import org.grow.loginto.entity.enums.ApplyState;
import org.grow.loginto.entity.enums.AuditState;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @Author: xwg
 * @CreateDate: 21-6-8
 */
@Repository
public interface LeaveEntityDao extends JpaRepository<LeaveEntity,Integer>{
    LeaveEntity findByLeaveIdAndApplier(Integer id,String applier);
    LeaveEntity findByLeaveIdAndApplyState(Integer id, ApplyState state);
}
